projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb3e7ae
)
* image.el (image-type-from-buffer): Only return supported image type.
author
Chong Yidong
<cyd@gnu.org>
Thu, 26 Apr 2012 08:43:20 +0000
(16:43 +0800)
committer
Chong Yidong
<cyd@gnu.org>
Thu, 26 Apr 2012 08:43:20 +0000
(16:43 +0800)
Fixes: debbugs:9045
lisp/ChangeLog
patch
|
blob
|
history
lisp/image.el
patch
|
blob
|
history
diff --git
a/lisp/ChangeLog
b/lisp/ChangeLog
index a709c0174160a5d5d2fa80bc58a1f2adf7465b66..ad6fd35bc5d1e019e75a5b329742c6fbbabd0145 100644
(file)
--- a/
lisp/ChangeLog
+++ b/
lisp/ChangeLog
@@
-1,5
+1,8
@@
2012-04-26 Chong Yidong <cyd@gnu.org>
+ * image.el (image-type-from-buffer): Only return supported image
+ type (Bug#9045).
+
* vc/diff-mode.el (diff-beginning-of-hunk): Return a meaningful
value, for symmetry with diff-end-of-hunk.
(diff-split-hunk, diff-find-source-location)
diff --git
a/lisp/image.el
b/lisp/image.el
index 348c208781e601e3a7e227962a16b4b19c0457e7..27e41a57efec308a3e6e2b156b2006da6747a415 100644
(file)
--- a/
lisp/image.el
+++ b/
lisp/image.el
@@
-282,7
+282,9
@@
be determined."
types nil)
(setq types (cdr types)))))
(goto-char opoint)
- type))
+ (and type
+ (memq type image-types)
+ type)))
;;;###autoload